<?php echo form_open('auth/login', array('id' => 'login-form', 'class' => 'nice-form')); ?>
  <span class="validation-errors">
    <?php echo validation_errors() ?>
    <?php if(isset($error)): ?>
      <p>Datos incorrectos.</p>
    <?php endif; ?>
  </span>
  
  <?php echo form_label('Email', 'email'); ?>
  <?php echo form_input(array('id' => 'email', 'name' => 'email'), ($email)?($email):('')) ?>
  <?php echo form_label('Contrase&ntilde;a', 'password'); ?>
  <?php echo form_password(array('id' => 'password', 'name' => 'password')) ?>
  
  <input type="hidden" name="referer" value="<?php echo $referer; ?>" />
  
  <div class="meta">
    <?php echo form_submit('login', 'Ingresar') ?>
    <span class="right"><input type="button" onclick="location.href='<?php echo site_url('auth/forgot') ?>'" value="Olvid&eacute; mi contrase&ntilde;a"></span>
  </div>
<?php echo form_close(); ?>
<div class="clear"></div>